package com.houtai.dao;

import com.houtai.bean.TdTrainApply;
import com.houtai.bean.dto.train.apply.TdTrainApplyInsertDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TdTrainApplyDao {
    /**
     * @Purpose:    添加培训报名想信息
     * @param:      dto
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void insertTdTrainApply(TdTrainApplyInsertDto dto);
    /**
     * @Purpose:    查找培训报名信息
     * @param:      train_id
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     int
     */
    TdTrainApply findTdTrainApply(@Param("phone_no")String phone_no, @Param("train_id")int train_id);
}
